package com.mininglamp.action;

import javax.validation.Valid;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.mininglamp.service.ZllzService;
import com.mininglamp.utils.Pager;
import com.mininglamp.utils.ResultMsg;

@RestController
@RequestMapping("/zllz")
public class ZllzAction {

	Logger log = LoggerFactory.getLogger(ZllzAction.class);

	@Autowired
	private ZllzService zllzService;
	
	@RequestMapping(value = "/search", method = RequestMethod.GET)
	public ResultMsg searchZllz(@Valid Pager pager){
		
		return ResultMsg.success(zllzService.list(pager));
	}
}
